<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <title>Title</title>
</head>
<style>
  .box1{
    width: 250px;
    height: 150px;
    margin: 10px;
    padding: 15px;
    border: 5px dashed #333;

    background: url("img/bd.jpg") no-repeat;
      background-clip: padding-box;
    background-size: cover;
    float: left;
  }
</style>
<body>
  <div class="box1"></div>
</body>
</html>